import os
from celery import Celery
from manage import ENV, ENVIRONMENT
from django.conf import settings

os.environ.setdefault("DJANGO_SETTINGS_MODULE", ENVIRONMENT.get(ENV))

app = Celery('black_bag')
app.config_from_object('django.conf:settings', namespace='CELERY')
app.autodiscover_tasks()
